<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
 

                   <div class="box width-500">
                   
                        <legend>
                           Edit New Addon Type
                        </legend>
                        
                        <form id="add-addon-type" method="post" action="EditAddonTypeServlet">
                            
                            
                            <input type="hidden" name="id" value="${requestScope.addontype.addonid}"/>
                            
                        	<p>
                            	<label for="addon-type-name">Addon Type Name</label>
                                <input type="text" required name="addon-type-name" id="addon-type-name" value="${requestScope.addontype.name}" class="input-xlarge" placeholder="Enter name of Addon Type" >
                            </p> 
                            
                            <p class="textarea-nice">
                            	<label for="description" >Addon Type Description</label>
                                <textarea name="description" class="input-block-level" id="description" required rows="6"  text="${requestScope.addontype.des}" value="${requestScope.addontype.des}">${requestScope.addontype.des} </textarea>
                            </p>
                            
                            <p>
                             	<label class="checkbox">
                                    
                                    <input type="checkbox" name="Activestatus" value="1" <c:if test="${requestScope.addontype.status == 1}">checked</c:if>/> Check the box to make the Addon Type Active.
                                     
                               </label>
                              
                            </p>
                            
                            <p>
                            	<input type="submit" class="btn btn-primary btn-large" value="Save" name="submit">
                            </p>
                            <p>
                                 <label class="text-success"> Display the "succesfully saved" message here on successfull submission</label>
                            </p>
                            
                   		</form>
            	
				</div>
           
           

       

        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
        <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.8.1.min.js"><\/script>')</script>

        <script src="js/vendor/bootstrap.min.js"></script>
		<script src="js/nicEdit.js"></script><!-- including nicedit js-->
        <script src="js/main.js"></script>
        <script src="js/jquery.validate.min.js"></script>
        <script type="text/javascript">
        
			$(document).ready(function() { 
			 	 
				 // form validation
				 $("#add-addon-type").validate();
				 
            });
			
			bkLib.onDomLoaded(function() { //assigning nicedit to textarea 
					new nicEditor({fullPanel : true,iconsPath : 'js/nicEditorIcons.gif',xhtml: true}).panelInstance('description');
				});
        
        </script>